package com.example.summer_pro.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import java.util.Date;

@Entity
@Data
@IdClass(ContentKey.class)
@AllArgsConstructor
@NoArgsConstructor
public class Content {

    @Id
    @Column(name = "u_id")
    private Integer u_id;

    @Id
    @Column(name = "t_id")
    private Integer t_id;

    @Id
    @Column(name = "q_id")
    private Integer q_id;

    private String q_type;
    private String time;
    private String type;
    private String answer;
    private String score;
    private Integer sum_score;
    private String check_result;//选择 转String[] 0-1-2。。。
    private String content;//填空
    private Integer value;//评分
    private Integer number;

}
